package cn.ffcs.uec.staff.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.outStaff.model.UecOutStaffInfo;
import cn.ffcs.uec.outStaff.vo.UecOutStaffInfomationVo;
import cn.ffcs.uec.staff.dao.UecEncDao;
import cn.ffcs.uec.staff.manager.UecEncManager;
import cn.ffcs.uec.staff.model.UecEnc;
import cn.ffcs.uec.staffAndOutStaff.vo.StaffAndOutStaff;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecEncManager")
@Scope("prototype")
public class UecEncManagerImpl implements UecEncManager {

	@Resource
	private UecEncDao uecEncDao;

	@Override
	public PageInfo queryPageInfoByUecEnc(UecEnc uecEnc, int current,
			int pageSize) {
		return uecEncDao.queryPageInfoByUecEnc(uecEnc, current, pageSize);
	}

	@Override
	public UecEnc findUecEncById(UecEnc uecEnc) {
		return uecEncDao.findUecEncById(uecEnc);
	}

	@Override
	public PageInfo queryPageInfoByUecEncOnApproval(UecEnc uecEnc, int current,
			int pageSize) {
		return uecEncDao.queryPageInfoByUecEncOnApproval(uecEnc, current, pageSize);
	}

	@Override
	public List<UecEnc> findUecEncByOutStaffId(UecOutStaffInfo uecOutStaffInfo) {
		// TODO Auto-generated method stub
		return uecEncDao.findUecEncByOutStaffId(uecOutStaffInfo);
	}
	@Override
	public List<UecEnc> findUecEncByOutAndStaffId(UecOutStaffInfomationVo uecOutStaffInfo) {
		// TODO Auto-generated method stub
		return uecEncDao.findUecEncByOutAndStaffId(uecOutStaffInfo);
	}

	@Override
	public List<UecEnc> findUecEncByPkPsndoc(StaffAndOutStaff staffAndOutStaff) {
		// TODO Auto-generated method stub
		return uecEncDao.findUecEncByPkPsndoc(staffAndOutStaff);
	}

}
